<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!--#include file="lib/saferequest.asp"-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
<%
call CheckRights(3,4)
txid = saferequest("txid",1)

if saferequest("mm_edit",0)="true" then
	tixiang=saferequest("tixiang",0)
	tixiangjiage=saferequest("tixiangjiage",1)
	tixiangjiagef=saferequest("tixiangjiagef",1)
	set cmd=Server.CreateObject("ADODB.Command")
	cmd.ActiveConnection = conn
	sql="update tx set tixiang='"&tixiang&"',tixiangjiage="&tixiangjiage&",tixiangjiagef="&tixiangjiagef&" where txid="&txid
	'response.Write(sql)
	'response.end
	cmd.CommandText = sql
	cmd.Execute
	view_url="manage_tx.asp"
	response.Redirect(view_url)
end if



	Set rs = Server.CreateObject("ADODB.Recordset")
	sql= "SELECT * FROM tx WHERE txid = " & txid
	rs.Open sql,conn,1,1

%>
<div class="navbar">
	<a href="manage_tx.asp">提箱信息管理</a>&gt;&gt;<a href="edit_tx.asp?txid=<%=txid%>">编辑提箱</a>&gt;&gt;
</div>

<form name="form1" method="post" action="#">
	<div>
		<label>ID</label>
		<%=rs("txid")%>
	</div>
	<div>
		<label>提箱</label>
		<input name="tixiang" type="text" value=<%=rs("tixiang")%> />
	</div>
	<div>
		<label>应收价格</label>
		<input name="tixiangjiage" type="text" value=<%=rs("tixiangjiage")%> />
	</div>
	<div>
		<label>应付价格</label>
		<input name="tixiangjiagef" type="text" value=<%=rs("tixiangjiagef")%> />
	</div>
	<div>
		<input type="submit" name="Submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="reset" name="Reset" value="重置" />
		<input type="hidden" name="mm_edit" value="true" />
	</div>
</form>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
conn.close
set conn=nothing
%>

